import request from '@/utils/request'
//回库申请单单列表
export const getBackWarehouseList=(query)=>{
  return request ({
    url:'/module/returnApply/list',
    method:"get",
    params:query,
  })
}
//回库申请单详情
export  const getBackWarehouseInfoApi=(id)=>{
  return request({
    url:'/module/returnApply/'+id,
    method:'GET',

  })
}
//新增
export  const addBackWarehouseApi=(data)=>{
  return request({
    url:'/module/returnApply',
    method:'POST',
    data,
  })

}
// 修改
export  const editBackWarehouseApi=(data)=>{
  return request({
    url:"/module/returnApply",
    method:'PUT',
    data,
  })
}
//删除
export const delBackWarehouseApi=(id)=>{
  return request({
    url:'/module/returnApply/'+id,
    method:'delete'
  })
}
// 获取自己入库申请编号
export const getChildNo=(data)=>{
  return request({
    url:'/module/returnApply/getNo',
    method:'post',
    data,
  })
}
